﻿<Controls:MetroWindow x:Class="Shoozla.View.ProgressBarView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:behaviours="clr-namespace:MahApps.Metro.Behaviours;assembly=MahApps.Metro" 
        xmlns:s="clr-namespace:Shoozla"
        xmlns:sv="clr-namespace:Shoozla.View"
        xmlns:svm="clr-namespace:Shoozla.ViewModel"
        FlowDirection="RightToLeft"
        Visibility="{Binding ShowBar, Converter={StaticResource boolToVis}}"
        Title="ProgressBarView" Height="110" Width="530" ShowWindowCommands="False"  WindowStartupLocation="CenterOwner" ResizeMode="NoResize" ShowInTaskbar="False" AllowsTransparency="False" ShowIconOnTitleBar="False" ShowTitleBar="False">
    
        <i:Interaction.Behaviors>
        <behaviours:BorderlessWindowBehavior ResizeWithGrip="False" AutoSizeToContent="False" />
    </i:Interaction.Behaviors>

    <!---->

    <StackPanel  VerticalAlignment="Center" HorizontalAlignment="Center">
        <WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
            <Button x:Name="CancelBT" Command="{Binding Path=CmdCancel}" ToolTip="Stop" Width="40" Height="40" Background="{DynamicResource AccentColorBrush}">
                 <Controls:MetroImage HorizontalAlignment="Center" VerticalAlignment="Center" Source="{StaticResource appbar_close}"  Height="35" Width="35" />
            </Button>
            <ProgressBar DockPanel.Dock="Top"  HorizontalAlignment="Left" Name="mainPB" VerticalAlignment="Top" Height="43" Width="465" FlowDirection="LeftToRight" Maximum="{Binding Maximum, Mode=OneWay}" Minimum="{Binding Minimum, Mode=OneWay}">          
            </ProgressBar>
            <TextBlock FontSize="24" Name="currentTB"  Margin="50,-45,0,0" VerticalAlignment="Center" HorizontalAlignment="Center" FlowDirection="RightToLeft"></TextBlock>        
        </WrapPanel>
        <TextBlock FontSize="12" Name="descriptionTB"   VerticalAlignment="Center" HorizontalAlignment="Center" FlowDirection="LeftToRight" Margin="0"></TextBlock>
    </StackPanel>
</Controls:MetroWindow>
